package org.database.generator.code.model;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author liangsu
 * @version v1.0
 * @Description
 * @Date 2019/8/27 11:12
 * @since
 */
public class Table {
    private String tableName;
    private String comment;
    private List<TableColumn> tableColumns = new ArrayList<>();

    private String className;
    private String classNameLower;
    private Set<String> imports = new HashSet<>();

    private List<String> shardings = new ArrayList<>();

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getTableName() {
        return tableName;
    }

    public String getClassName() {
        return className;
    }

    public String getComment() {
        return comment;
    }
    public void setComment(String comment) {
        this.comment = comment;
    }
    public List<TableColumn> getTableColumns() {
        return tableColumns;
    }
    public void setTableColumns(List<TableColumn> tableColumns) {
        this.tableColumns = tableColumns;
    }

    public Set<String> getImports() {
        return imports;
    }

    public void setImports(Set<String> imports) {
        this.imports = imports;
    }

    public String getClassNameLower() {
        return classNameLower;
    }

    public void setClassNameLower(String classNameLower) {
        this.classNameLower = classNameLower;
    }

    public List<String> getShardings() {
        return shardings;
    }

    public void setShardings(List<String> shardings) {
        this.shardings = shardings;
    }
}
